package com.ruoyi.project.data.mapper;

import java.util.List;
import com.ruoyi.project.data.domain.WeightWorker;
import org.springframework.stereotype.Repository;

/**
 * 人员信息Mapper接口
 * 
 * @author ruoyi
 * @date 2020-03-21
 */
@Repository
public interface WeightWorkerMapper 
{
    /**
     * 查询人员信息
     * 
     * @param id 人员信息ID
     * @return 人员信息
     */
    public WeightWorker selectWeightWorkerById(Long id);

    /**
     * 查询人员信息列表
     * 
     * @param weightWorker 人员信息
     * @return 人员信息集合
     */
    public List<WeightWorker> selectWeightWorkerList(WeightWorker weightWorker);

    /**
     * 新增人员信息
     * 
     * @param weightWorker 人员信息
     * @return 结果
     */
    public int insertWeightWorker(WeightWorker weightWorker);

    /**
     * 修改人员信息
     * 
     * @param weightWorker 人员信息
     * @return 结果
     */
    public int updateWeightWorker(WeightWorker weightWorker);

    /**
     * 删除人员信息
     * 
     * @param id 人员信息ID
     * @return 结果
     */
    public int deleteWeightWorkerById(Long id);

    /**
     * 批量删除人员信息
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteWeightWorkerByIds(Long[] ids);

    public int checkWorkerPhoneUnique(WeightWorker weightWorker);

    public int checkWorkerIdCardUnique(WeightWorker weightWorker);

    public int modifyPassword(WeightWorker weightWorker);

    public void clearSpecialEquipmentPermissions(Long id);
}

